<?php

namespace App\Http\Controllers\Mobile;

use App\Models\Item;

class UserController extends BaseController
{
    //
    public function index()
    {

        $items = Item::onSale()->limit(20)->orderByRaw('RAND()')->get();
        $this->assign(compact('items'));
        return $this->view('mobile.user.index');
    }
}
